package com.qf.config;

import com.qf.pojo.User;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author sunyamei
 * @version V1.0
 * @Project javase2203
 * @Package com.qf.config
 * @Description:
 * @Date 2022/8/8 20:26
 */
@Configuration
public class ConfigUser {

    @Bean(name = "user1")
    public User getUser(){
        User user = new User();
        user.setId(1);
        user.setName("zhangsan");
        user.setSex("男");
        return user;
    }



}
